package com.zlk.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description: TODO
 * @author: 张刘宽
 * @date: 2022/10/5 16:56
 * @version: 1.0
 * @Software: IntelliJ IDEA
 */
@Controller
public class HelloController {
    @RequestMapping("/")
    public String protal() {
        //将逻辑视图返回
        return "index";
    }

    @RequestMapping("/hello")
    public String hello() {
        return "success";
    }
}
